#include "contact.h"

Contact::Contact()
{
    contactLocalTime = contactInactionTime = -1;
    contactPresence = Presence::Invalid;
}


// Setters and getters
void Contact::setJid(gloox::JID jid)
{
    this->contactJid = jid;
}

gloox::JID Contact::jid()
{
    return contactJid;
}

void Contact::setPriority(int priority)
{
    this->contactPriority = priority;
}

int Contact::priority()
{
    return contactPriority;
}

void Contact::setPresence(Presence::PresenceType presenceType)
{
    this->contactPresence = presenceType;
}

Presence::PresenceType Contact::presence()
{
    return contactPresence;
}

void Contact::setLocalTime(time_t tm)
{
    this->contactLocalTime = tm;
}

time_t Contact::localTime()
{
    return contactLocalTime;
}

void Contact::setInactionTime(time_t tm)
{
    this->contactInactionTime = tm;
}

time_t Contact::inactionTime()
{
    return contactInactionTime;
}

void Contact::setClientInfo(QString info)
{
    this->contactClientInfo = info;
}

QString Contact::clientInfo()
{
    return contactClientInfo;
}

void Contact::setName(QString name)
{
    this->contactName = name;
}

QString Contact::name()
{
    return contactName;
}

void Contact::setOs(QString os)
{
    this->contactOs = os;
}

QString Contact::os()
{
    return contactOs;
}
